import { createRouter, createWebHashHistory } from 'vue-router'

import routes from './routes'

const router = createRouter({
    scrollBehavior(/* to, from, savedPosition */) {
        return { top: 0 }
    },
    history: createWebHashHistory(),
    routes: routes,
});

export function setupRouter(app) {
    app.use(router)
}
export default router